package com.zbkj.crmeb.front.response;

import lombok.Data;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

/**
 * @author stivepeim
 * @title: OrderPayResponse
 * @projectName crmeb
 * @description: 支付订单 Response
 * @date 2020/7/1418:06
 */
@Data
public class OrderPayResponse {

    private String status;

    private Object result; // 非线上支付对象

    private Object jsConfig; // 线上支付对象 todo 后面抽象对象

    private String message;

    private Map<String,String> extend;

    public OrderPayResponse() {
    }

    public OrderPayResponse(String status, OrderPayItemResponse result) {
        this.status = status;
        this.result = result;
    }

    public void addExtend(String key, String value){
        if (null == extend){
            extend = new HashMap<>();
        }
        extend.put(key,value);
    }


}
